﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace SimpleScrum.Core.Entities
{
    public class Project
    {
        public enum StatusEnum
        {
            Started = 0,
            NotStarted = 1,
            Closed=2,
            Completed=3
        }

        [Display(Name = "Project ID")]
        public virtual Guid Id { get; protected set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Name")]
        [StringLength(50, ErrorMessage = "The Project name must be at most 50 characters long")]
        public virtual string Name { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Description")]
        [StringLength(500, ErrorMessage = "The Project description must be at most 250 characters long")]
        public virtual string Description { get; set; }

        [Required]
        [Display(Name = "Organization")]
        public virtual Organization Organization { get; set; }

        [Display(Name = "Status")]
        public virtual int Status { get; set; }
    }
}